<?php
namespace BoxDoc\Controller\Home;
//use Think\Controller;
class UserController extends CommonController {
	public function _initialize() {
		parent::_initialize();
		$this->nav_cur = "Home";
		if (!$this->user_info['user_id']) {
			Logic("BoxSns", "Member")->toLogin();
		}
		$this->this_user_id = $user_id = I('user_id', $this->user_id, "intval");
		$this->member_info = BoxModel("system_member")->load($user_id);
	}

	//操作当为空的时候
	public function _empty($name) {
		ob_start();
		$GLOBALS['GETCONTENT'] = 1;
		A("BoxSns/Home/User")->$name();
		$this->page_content = ob_get_contents();
		ob_end_clean();
		C('DEFAULT_MODULE', "BoxDoc");
		//dump($this->user_page_content);
		//$this->page_content=$this->fetch("User/index");
		//$templateFile = $this->getTemplateFile("User/home");
		$this->page_content = $this->fetch("User/home");
		$templateFile = $this->getTemplateFile("Index/home");
		parent::display($templateFile);
	}

}
